MP SMount (volname; zonename; servername; username; 
                                                      password; volpassword)  ->  err

Mounts a shared volume from a server you specify, without any user interaction.

err             integer       returns the error which occured. A value of 
                                        zero indicates no error occured. See below 
                                        for a list of possible errors.

volname      string (max. 27)      contains the volume name you want 
                                        information about. Actually this may be a full 
                                        path to a file or folder (max. length 255). As 
                                        long as it starts with a volume name it will be 
                                        succesfully found. If the file or folder does 
                                        not exist no error will be returned.

zonename  string (min. 32) which contains the name of the zone in 
                                        which the server is located to which you 
                                        want to connect. If the server is in the same 
                                        zone or you are connected to a single-zone 
                                        network use an asterik (*) as the zonename. 
                                        See the NBP (Name Binding Protocol) section 
                                        of the AppleTalk Manager chapter of IM VI for 
                                        more info about these wildcards.

servername  string (max. 32)  contains the name of the server to 
                                        which you want to connect.

username     string (max. 32)  contains the username you want to use 
                                        to connect to the server.

password     string (max. 8)  contains the password of the user of which 
                                        you passed the username in the previous 
                                        parameter.

volpassword string (max. 8)   contains the volume password of the user 
                                        of which you passed the username in the 
                                        previous parameter. Leave this parameter 
                                        empty if no volume password is required to 
                                        mount the volume.

When you want to mount an AppleShare volume fill at least the volume name, zone name and servername. If the username, password and volume password are empty strings the volume will be mounted with guest access, and is registered on the server as '<Guest>' or '<Any ser>'.

Any welcome message from the server is surpressed, and if the user creates an alias of this volume and uses it later to remount, this setting is stored and used again so no welcome message will be shown either.

Mounting a shared volume may take some time, a couple of seconds. Especially if the external needs to retry it several times. Also, the Finder then notices it and does some operations with it, which may lock the computer for a moment. Since there is no user interaction, you may want to put up a window stating you're busy mounting a volume.

Note: The length specified with a string is the maximum length possible. The external does not test for the size of the variables. Please, declare the string you use to the correct length. Use of these commands inside the Debugger window is not recommended.

Possible errors:
      o Error
  28  ppleTalk is not enabled
  35  olume with that name not found
  50  arameter error (inside external, not necessarily the 
                parameters you pass But in this case probably the username 
                and/or (volume) password are incorrect)
  58  xternal File system error; function not available for that 
                volume
-5000  ccess denied
-5002  ser authentication method unknown
-5003  ad version number  (AppleShare version is not 3.0 or later, 
                or the version is not 3.0.1 or later when the volume 
                password is not an empty string)
-5016  erver is not responding
-5019  FP Parameter error (inside external, not necessarily the 
                parameters you pass But in this case probably the username 
                and/or (volume) password are incorrect)
-5023  ser authentication failed, password incorrect
-5042  assword has expired on server
-5060  ot a fixed directory ID volume
-5061  aximum number of volumes has been mounted (20 AppleShare 
                volumes)
-5062  olume already mounted
-5063  ttempt to log on to a server running on the same machine

And memory errors and other errors Apple hasn't told me about.